package com.serie402.business.dao.dto;

import java.io.Serializable;
import java.util.List;

import com.kiss.fw.dto.AbstractDAODTO;
import com.serie402.common.bo.News;
import com.serie402.common.dto.NewsDTO;

public class NewsDAODTO extends AbstractDAODTO implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private int newsId;
	private String category;
	private String subCategory;
	private News article;
	private List<News> news;
	
	public NewsDAODTO() {
	}
	
	public NewsDAODTO(final NewsDTO _dto) {
		newsId = _dto.getNewsId();
		
		if(_dto.getNews() != null) {
			category = _dto.getNews().getCategory();
			subCategory = _dto.getNews().getSubCategory();
		}
	}
	
	public NewsDAODTO(final int _newsId) {
		newsId = _newsId;
	}
	
	public NewsDAODTO(final String _category, final String _subCategory) {
		category = _category;
		subCategory = _subCategory;
	}
	
	public String getCategory() {
		return category;
	}

	public String getSubCategory() {
		return subCategory;
	}

	public int getNewsId() {
		return newsId;
	}
	
	public News getArticle() {
		return article;
	}
	
	public List<News> getNews() {
		return news;
	}
	
	public void setCategory(final String _category) {
		category = _category;
	}

	public void setSubCategory(final String _subCategory) {
		subCategory = _subCategory;
	}

	public void setNewsId(final int _newsId) {
		newsId = _newsId;
	}
	
	public void setArticle(final News _article) {
		article = _article;
	}
	
	public void setNews(List<News> _news) {
		news = _news;
	}
	
	@Override
	public void reset() {
	}
}